package hu.arguscab.ai;

/**
 * Represents a class joint two <code>Nodes</code>.
 * @param <T> The data type that <code>Edge</code> contain. 
 * @author sharp
 */
public class Edge<T> {

	private T		data;
	private int		weight;

	public Edge() {
		data = null;
	}

	public Edge(T data) {
		this.data = data;
	}
	
	public Edge(T data, int weight) {
		this.data = data;
		this.weight = weight;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return data.toString();
	}
}
